<table class="report">
<?php
if (isset($PreparedTemplates['report_form']['empty'])) {
	echo $PreparedTemplates['report_form']['empty'];
}
else {
?>

<tr><td>
	Date
	</td>
	<td>
	Message Type
	</td>
	<td>
	Username
	</td>
	<td>
	Groupname
	</td>
	<td>
	Caller Id
	</td>
	<td>
	NAS Port
	</td>
	<td>
	NAS IP Address
	</td>
	<td>
	Eap type
	</td>
	<td>
	Eap type name
	</td>
	<td>
	access device
	</td>
	</tr>
<?php 
foreach ($PreparedTemplates['report_form'] as $report_row)
{
?>

  <tr>
  	<td>
	<?php echo $report_row['date']?>
	</td>
	<td>
	<?php echo $report_row['message_type']?>
	</td>
	<td>
	<?php echo $report_row['username']?>
	</td>
	<td>
	<?php echo $report_row['groupname']?>
	</td>
	<td>
	<?php echo $report_row['caller_id']?>
	</td>
	<td>
	<?php echo $report_row['nas_port']?>
	</td>
	<td>
	<?php echo $report_row['nas_ip_address']?>
	</td>
	<td>
	<?php echo $report_row['eap_type']?>
	</td>
	<td>
	<?php echo $report_row['eap_type_name']?>
	</td>
	<td>
	<?php echo $report_row['access_device']?>
	</td>
</tr>
<?php 
}}
?>
</table>

